
import java.io.IOException;

import org.boehn.kmlframework.kml.KmlException;
public class Self extends Entity implements Runnable{

private float[] location = new float[2]; 
private float[] currentdest;

Motion go = new Motion();
private boolean end = false;

public Self(){
	Alias = "you";
}


public void run(){
	try{
		Thread.sleep(1000);
	}catch(InterruptedException ex){
		ex.printStackTrace();
	}
while(end == false){	
currentdest = go.GenDest();
	
if(go.getinc() < 0){
	while (currentdest[1] < location[1]){
	location = go.GenStep();
	latitude = location[0];
	longitude = location[1];
	go();
	
}
}else{
	while (currentdest[1] > location[1]){
		location = go.GenStep();
		latitude = location[0];
		longitude = location[1];
		go();
	}
	}
}



}


}
